/*************************************************************************
    > File Name: 
    > Author: Lancer
    > Mail: 18826075768@163.com
************************************************************************/

#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <thread>
using namespace std;

void hello(){
    cout << this_thread::get_id() << endl;
    cout << "hello,world" << endl;
}

int main(){
    cout << thread::hardware_concurrency() << endl;
    cout << this_thread::get_id() << endl;
    std::thread th(hello);
    std::thread th1(hello);
    th.join();
    th1.join();
    return 0;
}